import request from '@/utils/request'

// 城市查询
export function queryCity (id = '0') {
  return request({
    url: process.env.VUE_APP_ADV_OCEAN_API + '/admin/ocean/city/get',
    method:'post',
    data: { parent_id:id }
  })
}

// 城市查询(树形)
export function queryCityGet () {
  const params = {
    filtering: [
      {
        "field": "level",
        "operator":"IN",
        "value":[1,2]
      },
    ]
  }
  return request({
    url: process.env.VUE_APP_ADV_OCEAN_API + '/admin/ocean/city/tree',
    method:'post',
    data:params
  })
}

// 创意行业(树形)
export function queryIndustry () {
  const params = {
    // filtering: [
    //   {
    //     "field": "level",
    //     "operator":"IN",
    //     "value":[1,2]
    //   },
    // ]
  }
  return request({
    url: process.env.VUE_APP_ADV_OCEAN_API + '/admin/ocean/industry/tree',
    method:'post',
    data:params
  })
}